home *** CD-ROM | disk | FTP | other *** search
/ Multimedia Jumpstart / Multimedia Microsoft Jumpstart Version 1.1a (Microsoft).BIN / develpmt / sdk / vfw11.win / vfwdk / init.c_ / init.bin
Encoding:
Text File  |  1994-03-03  |  2.7 KB  |  119 lines

  1. //==========================================================================;
  2. //
  3. //  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. //  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. //  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. //  PURPOSE.
  7. //
  8. //  Copyright (c) 1992, 1994  Microsoft Corporation.  All Rights Reserved.
  9. //
  10. //--------------------------------------------------------------------------;
  11. //
  12. //  init.c
  13. //
  14. //  Description:
  15. //
  16. //
  17. //
  18. //==========================================================================;
  19.  
  20. #include <windows.h>
  21. #include <windowsx.h>
  22. #include <mmsystem.h>
  23. #include <mmreg.h>
  24. #include <msacm.h>
  25. #include <msacmdrv.h>
  26.  
  27. #include "codec.h"
  28. #include "debug.h"
  29.  
  30.  
  31. HINSTANCE   ghinst;             // DLL instance handle (module in Win 16)
  32.  
  33.  
  34. //==========================================================================;
  35. //
  36. //  WIN 16 SPECIFIC SUPPORT
  37. //
  38. //==========================================================================;
  39.  
  40. #ifndef WIN32
  41.  
  42. //--------------------------------------------------------------------------;
  43. //
  44. //  int LibMain
  45. //
  46. //  Description:
  47. //      Library initialization code.
  48. //
  49. //  Arguments:
  50. //      HINSTANCE hinst: Our module handle.
  51. //
  52. //      WORD wDataSeg: Specifies the DS value for this DLL.
  53. //
  54. //      WORD cbHeapSize: The heap size from the .def file.
  55. //
  56. //      LPSTR pszCmdLine: The command line.
  57. //
  58. //  Return (int):
  59. //      Returns non-zero if the initialization was successful and 0 otherwise.
  60. //
  61. //  History:
  62. //      11/15/92    Created. 
  63. //
  64. //--------------------------------------------------------------------------;
  65.  
  66. int FNGLOBAL LibMain
  67. (
  68.     HINSTANCE               hinst, 
  69.     WORD                    wDataSeg, 
  70.     WORD                    cbHeapSize,
  71.     LPSTR                   pszCmdLine
  72. )
  73. {
  74.     DbgInitialize(TRUE);
  75.  
  76.     DPF(1, "LibMain(hinst=%.4Xh, wDataSeg=%.4Xh, cbHeapSize=%u, pszCmdLine=%.8lXh)",
  77.         hinst, wDataSeg, cbHeapSize, pszCmdLine);
  78.  
  79.     //
  80.     //  everything looks good to go in Win 16 land.
  81.     //
  82.     ghinst = hinst;
  83.  
  84.     return (TRUE);
  85. } // LibMain()
  86.  
  87.  
  88. //--------------------------------------------------------------------------;
  89. //  
  90. //  int WEP
  91. //  
  92. //  Description:
  93. //  
  94. //  
  95. //  Arguments:
  96. //      WORD wUselessParam:
  97. //  
  98. //  Return (int):
  99. //  
  100. //  History:
  101. //      03/28/93    Created.
  102. //  
  103. //--------------------------------------------------------------------------;
  104.  
  105. EXTERN_C int FNEXPORT WEP
  106. (
  107.     WORD                    wUselessParam
  108. )
  109. {
  110.     DPF(1, "WEP(wUselessParam=%u)", wUselessParam);
  111.  
  112.     //
  113.     //  always return 1.
  114.     //
  115.     return (1);
  116. } // WEP()
  117.  
  118. #endif
  119.